package com.ethan.springcloud.helloserviceclient.service;

import com.ethan.springclod.api.vo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author daifei
 * @date 2019/4/16
 */
@FeignClient("HELLOSERVICE")
public interface HelloFeignService {

    @RequestMapping("/hello")
    String hello();

    @RequestMapping("/hello")
    String helloName(@RequestParam String name);

    @PostMapping("/hello2")
    String hello2(@RequestBody User user);

    @PostMapping("/hello3")
    String hello3(@RequestParam("user") User user);
}
